<?php
/**
 * Description:
 * Author: JennyWang
 * Date: 2018/8/11
 * Time: 22:07
 * Created by PhpStorm.
 */

namespace App\Services\Utils;


class FormatLog
{
    public static function request(): string
    {
        $method = request()->getMethod();
        $url = request()->fullUrl();
        $ip = (new IpUtils)->getIp();
        $ua = request()->userAgent();
    
        return "$method: $url: $ip: $ua";
    }
}